package computerdatabase

import scala.concurrent.duration._

import io.gatling.core.Predef._
import io.gatling.http.Predef._

class BasicSimulationLogin extends Simulation {

  val httpProtocol = http
    // Here is the root for all relative URLs
    .baseUrl("http://101.43.158.84:5000")

  // A scenario is a chain of requests and pauses
  val scn = scenario("LoginServiceApi")
    .exec(
      http("request_1")
        .get("/login")
        .check(status.is(200))
    )
  setUp(scn.inject(atOnceUsers(1000)).protocols(httpProtocol))
}
